@echo off
set ICONS_DIR=assets\images\icon
set DEPLOY_DIR=deploy

if not exist "%APP_DIR%\icons" md "%APP_DIR%\icons"
if exist "%APP_DIR%\icons\*.*" del /Q "%APP_DIR%\icons\*.*"

copy /Y "%ICONS_DIR%\gw_logo_exp_??.png" "%APP_DIR%\icons"

cd "%APP_DIR%\icons"
for %%a in (gw_logo_exp_??.png) do ren "%%a" "  AirGateway??.png"
for %%a in (  *.png) do ren "%%a" %%a

cd "..\.."

copy /Y "%DEPLOY_DIR%\config.cfg.original" "%APP_DIR%/config.cfg.original"
copy /Y "%DEPLOY_DIR%\olvass_el.txt" "%APP_DIR%/olvass_el.txt"